#-----------------------------------------------------------------------------
# Project:     Multi-Programmer Game Demo
# Name:        Paddle.py
# Purpose:     Controllable Paddle Object
# 
# Authors:     Chris Spooner, Chris La-Roo
# Main Author: Chris Spooner
#
# Created:     11/30/2012
# Copyright:   (c) Chris Spooner 2012
# Licence:     New BSD
#-----------------------------------------------------------------------------
import pygame, math, sys, random
#stuff 
class Paddle():
    def __init__(self, maxSpeed, position):
        self.surface = pygame.image.load("rsc/paddle/paddle.png")
        self.surface = pygame.transform.scale(self.surface,
                                              (100, 30))
        self.rect = self.surface.get_rect()
        self.speed = [0,0]
        self.maxSpeed = maxSpeed
        self.place(position)
        
    def  __str__(self):
        return "I'm a paddle" + str(self.rect.center)
     
    def place(self, position):
        print "I've moved to", position
        
    def move(self):
        print "I've moved", self.speed
    
    def collideWall(self, screenWidth, screenHeight):
        print "trying to hit edges of screen", screenWidth, screenHeight
    
    def direction(self, dir):
        print "moving in direction", dir
        

                
               